home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 176-200 / scopedisk180 / patch / makefile < prev    next >
Makefile  |  1995-03-19  |  2KB  |  66 lines

  1. public = patch
  2. private =
  3. manpages = patch.man
  4. util = Makefile
  5.  
  6. c = patch.c pch.c inp.c version.c util.c chdir.c amystat.c
  7.  
  8. obj = patch.o pch.o inp.o util.o version.o chdir.o amystat.o
  9.  
  10. lintflags = -phbvxac
  11.  
  12. addedbyconf = Makefile.old bsd config.h config.sh eunice loc pdp11 usg v7
  13.  
  14. # Amiga (Manx) specific stuff:
  15. CFLAGS = +L -n -E150
  16. CC = cc
  17. libs = heapmem.o32 c32.lib
  18. LDFLAGS = -g
  19.  
  20. # grrr
  21. SHELL = /bin/sh
  22.  
  23. .c.o:
  24.         $(CC) $(CFLAGS) $*.c
  25.  
  26. #all: $(public) $(private) $(util)
  27. #        touch all
  28.  
  29. patch: $(obj)
  30.        ln -o patch  $(LDFLAGS) $(obj) $(libs)
  31.  
  32.  
  33. # won't work with csh
  34. install: patch
  35.         export PATH || exit 1
  36.         - mv $(bin)/patch $(bin)/patch.old
  37.         - if test `pwd` != $(bin); then cp $(public) $(bin); fi
  38.         cd $(bin); chmod 755 $(public)
  39.         - if test `pwd` != $(mansrc); then \
  40. for page in $(manpages); do \
  41. cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
  42. done; \
  43. fi
  44.  
  45. clean:
  46.         rm -f *.o *.orig core
  47.  
  48. realclean:
  49.         rm -f patch *.o *.orig core $(addedbyconf)
  50.  
  51. # The following lint has practically everything turned on.  Unfortunately,
  52. # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  53. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  54. # for that spot.
  55.  
  56. lint:
  57.         lint $(lintflags) $(defs) $(c) > patch.fuzz
  58.  
  59. patch.o: config.h common.h patch.c inp.h pch.h util.h version.h
  60. pch.o: config.h common.h pch.c pch.h util.h
  61. inp.o: config.h common.h inp.c inp.h util.h
  62. util.o: config.h common.h util.c util.h
  63. version.o: config.h common.h version.c version.h patchlevel.h util.h
  64.  
  65.  
  66.